import myAxios from '../MyAxios'
import urls from '../BaseUrl'

const showingonPlanApi={
  // 添加排片
  add(params){
    return myAxios.post(urls+'/plan/add',params)
  },
  // 查询排片列表
  list(params){
    return myAxios.get(urls+'/plans/roomid',params)
  },
  // 删除排片
  del(params){
    return myAxios.post(urls+'/plan/del',params)
  },
  // 发布排片计划
  publish(params){
    return myAxios.post(urls+'/plan/publish',params)
  },
  // 排片计划设为未发布
  noPublish(params){
    return myAxios.post(urls+'/plan/no-publish',params)
  },
}

export default showingonPlanApi